package com.tool.payment.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.tool.payment.model.PayOrder;
import com.tool.payment.model.PayParams;

public interface PaymentProxyService {

	/**
	 * 生成订单
	 * @param product
	 * @param device
	 * @param request
	 * @return
	 */
	Map<String, String> createOrder(String product, String mode,HttpServletRequest request);
	
	Map<String, String> createOrder(PayParams params,HttpServletRequest request);
	/**
	 * 回调
	 * @param product
	 * @param device
	 * @param request
	 * @param response
	 * @return
	 */
	String payNotify(String product, String mode, HttpServletRequest request);
	/**
	 * 退款
	 * @param param
	 * @param request
	 * @return
	 */
	Map<String, String> refundOrder(PayParams params,HttpServletRequest request);
	/**
	 * 对账
	 * @param params
	 * @return
	 */
	Map<String, PayOrder> reconciliation(PayParams params);

}
